﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace OpenComposite.Workflow
{
	public partial class UISetSaveType: Form
	{
		public UISetSaveType(string type)
		{
			InitializeComponent();
            cmb_SaveMode.SelectedItem = type;
            DialogResult = DialogResult.Cancel;
		}

        private void tsbtn_Cancel_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            this.Close();
        }

        private void tsbtn_OK_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
            this.Close();
        }

        public string SelectedSaveType
        {
            get {
                if (this.cmb_SaveMode.SelectedItem != null)
                    return this.cmb_SaveMode.SelectedItem.ToString();
                else
                    return null;
                }
        }
	}
}
